package me.boot.sys.mapper;

import me.boot.db.mybatis.template.SuperMapper;
import me.boot.sys.entity.SysUserBinding;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Sylar
 * @since 2021-11-30
 */
public interface SysUserBindingMapper extends SuperMapper<SysUserBinding> {

    @Select("select * from sys_user_binding \n" +
            "where platform_id=#{platformId} and uid=#{uid} and deleted = 0 \n" +
            "limit 1")
    SysUserBinding getByPlatformAndUid(String platformId, String uid);
}
